export const image = {
    css: {
        width: "750rpx",
        background: "yellow",
    },
    type: "view",
    views: [
        {
            type: "text",
            text: "基础用法",
            css: {
                display: "block",
            },
        },
        {
            type: "view",
            css: { display: 'inline-block' },
            views: [
                {
                    type: "view",
                    css: {
                        display: 'inline-block',
                        background: "red",
                    },
                    views: [
                        {
                            type: "image",
                            src: "https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg",
                            css: {
                                width: "200rpx",
                                height: "200rpx",
                                objectFit: 'contain',
                                background: 'green'
                            },
                        },
                        {
                            type: "text",
                            text: "默认",
                            css: {
                                display: "block",
                                // width: "200rpx",
                                background: '#ddd'
                            },
                        },
                    ],
                },
                {
                    type: "view",
                    css: {
                        display: 'inline-block',
                        background: "red",
                    },
                    views: [
                        {
                            type: "image",
                            src: "https://m.360buyimg.com/babel/jfs/t1/196317/32/13733/288158/60f4ea39E6fb378ed/d69205b1a8ed3c97.jpg",
                            css: {
                                width: "200rpx",
                                height: "200rpx",
                            },
                        },
                        {
                            type: "text",
                            text: "默认2",
                            css: {
                                display: "block",
                                width: "200rpx",
                                // background: '#ddd'
                            },
                        },
                    ],
                },
            ],
        },
    ],
};